home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / HeapScheduler.h,v < prev    next >
Text File  |  1988-12-20  |  1KB  |  87 lines

  1. head     3.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 3.1
  10. date     88.12.20.13.49.56;  author grunwald;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     88.10.30.13.05.49;  author grunwald;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     88.09.18.16.42.08;  author grunwald;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29.  
  30. 3.1
  31. log
  32. @Steay version
  33. @
  34. text
  35. @// This may look like C code, but it is really -*- C++ -*-
  36. // 
  37. // Copyright (C) 1988 University of Illinois, Urbana, Illinois
  38. //
  39. // written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  40. //
  41. #ifndef HEAPSCHEDULERH
  42. #define HEAPSCHEDULERH
  43.  
  44. #include "ThreadContainer.h"
  45. #include "ThreadHeap.h"
  46.  
  47. class Thread;
  48.  
  49. class HeapScheduler : public ThreadContainer {
  50.     ThreadHeap heap;
  51.  
  52. public:
  53.  
  54.     HeapScheduler(bool xdebug = 0) : (xdebug) {};
  55.  
  56.     virtual void add(Thread *t);
  57.     virtual void add(double key, Thread *t);
  58.     virtual void add(int key, Thread *t);
  59.     virtual Thread* remove();
  60.     virtual Thread* remove(Thread*);
  61.  
  62.     virtual bool isEmpty();
  63.     virtual unsigned size();
  64.  
  65.     virtual void classPrintOn(ostream& s);
  66. };
  67.              
  68. #endif HEAPSCHEDULERH
  69. @
  70.  
  71.  
  72. 1.2
  73. log
  74. @*** empty log message ***
  75. @
  76. text
  77. @@
  78.  
  79.  
  80. 1.1
  81. log
  82. @Initial revision
  83. @
  84. text
  85. @d1 6
  86. @
  87.